package com.jiayi.web.springUtil;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;

public class SpringContext implements ApplicationContextAware {

	 protected static ApplicationContext context;
	 
	@Override
	public void setApplicationContext(ApplicationContext applicationContext)
			throws BeansException {
		 context = applicationContext;

	}

	public static ApplicationContext getContext() {
        return context;
    }
	
}
